package org.efssc
def testjar(apptype, appname){
    if ("${apptype}"== "springboot" ){
        sh "mvn clean -gs devops/settings.xml test"
        //sh "cp devops/settings.xml ${appname}/${appname}"
        //sh "cd ${appname}/${appname} && mvn clean  -gs devops/settings.xml test"
    } else if ("${apptype}"== "npm"){
        sh "npm config set registry https://registry.npm.taobao.org && npm install  n -g && n stable && npm -v && node -v"
        sh "cd ${appname} && npm install && npm run lint"
    }
}